package com.hqyj.fj.javaSpringBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.fj.javaSpringBoot.modules.account.entity.Role;
import com.hqyj.fj.javaSpringBoot.modules.common.entity.Result;
import com.hqyj.fj.javaSpringBoot.modules.common.entity.SearchBean;

import java.util.List;


public interface RoleService {

    Result<Role> insertRole(Role role);

    Result<Role> updateRole(Role role);

    Result<Role> deleteRole(int id);

    Role  getRoleById(int id);

      List<Role> getRoles();

    PageInfo<Role> getRolesBySearchBean(SearchBean searchBean);

    public Result<Object>  insertRoles(List<Role> roles);

    List<Role> getRolesByUserId(int userId);
}
